<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>弹性盒子</title>
    <style>
        .box {
            display: flex;
            /* 默认效果 */
            /* justify-content: flex-start; */
            /* 右对齐 */
            /* justify-content: flex-end; */
            /* 居中对齐 */
            /* justify-content: center; */
            /* 空白区域在盒子之间平均分布 */
            /* justify-content: space-between; */
            /* 空白在盒子两侧 */
            /* justify-content: space-around; */
            /* 空白与盒子之间，与容器之间间距相等 */
            /* justify-content: space-evenly; */

            width: 600px;
            height: 400px;
            background-color: pink;
        }

        .box div {
            /* margin-right: 50px; */

            width: 100px;
            height: 100px;
            background-color: skyblue;

        }
    </style>
</head>

<body>
    <div class="box">
        <div>1</div>
        <div>2</div>
        <div>3</div>
    </div>
</body>

</html>